package com.cqut.service;

import java.util.List;
import java.util.Map;

import com.cqut.dto.LoginInfoDTO;
import com.cqut.dto.RoleRigthDTO;
import com.cqut.model.RoleRigth;

public interface IRoleRigthService {
    boolean save(RoleRigth roleRigth);

    boolean update(RoleRigth roleRigth);

    boolean delete(String roleRightId);

    boolean batchDelete(String[] primaryKeys);

    RoleRigth findModel(String roleRightId);

    RoleRigth findModel(String roleRightId, String[] parameters);

    Map<String, Object> findMap(String roleRightId);

    Map<String, Object> findMap(String roleRightId, String[][] parameters);

    List<RoleRigth> loadModels();

    List<RoleRigth> loadModels(String condition, Object[] values, String order, String sort, int curPage, int limit);

    List<RoleRigth> loadModels(String[] parameters, String condition, Object[] values, String order, String sort, int curPage, int limit);

    List<Map<String, Object>> loadMaps();

    List<Map<String, Object>> loadMaps(String condition, Object[] values, String order, String sort, int curPage, int limit);

    List<Map<String, Object>> loadMaps(String[][] parameters, String condition, Object[] values, String order, String sort, int curPage, int limit);

    long count();

    long count(String condition, Object[] values);

    long count(String[] parameters, boolean isDistinct);

    long count(String[] parameters, String condition, Object[] values, boolean isDistinct);

	int getMaxRoleRightId();

	List<Map<String, Object>> findPermById(String roleId);

	List<Map<String, Object>> findPermissionIds(String roleId);

	
}
